					

                                           <div class="title"><?php echo __('Просмотр видеоролика')?></div>
                                   
													<div class="thumbnails"> 
													    <div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a></div>
														<script type="text/javascript" src="/js/swfobject.js"></script>
														<script type="text/javascript">
															var s1 = new SWFObject("/js/player.swf","ply","320","240","9","#FFFFFF");
															s1.addParam("allowfullscreen","true");
															s1.addParam("allowscriptaccess","always");
															s1.addParam("flashvars","file=/uploads/users/video/<?php echo $m->getVideoPath().'.flv' ?>&image=/uploads/users/video/thumbnail/<?php echo $m->getVideoPath().'.jpeg' ?>");					
															s1.write("container");
														</script>
													 
													 </div>
													 <div class="clear"></div>
													    <?php if($m->getUserId()==sfContext::getInstance()->getUser()->getAttribute( 'user_id', null, 'sfGuardSecurityUser' ) or sfContext::getInstance()->getUser()->hasCredential('admin')):?>
												        <center><?php echo link_to(__('Удалить'),'myvideo/del?id='.$m->getId(),array('confirm'=>__('Вы уверены?')))?></center>
												        <?php endif ?>														 
													 <?php if($user->getGender()=='m'):?>												
												<center>	
												<?php echo link_to(__('Скачать видео'),'myvideo/download?id='.$m->getId(),array('target'=>'_blank','confirm'=>__('С вашего счета спишется ').sfConfig::get('app_cost_video_download').' '.__('кредита')))?>	
											   </center>
											   
											   
											     <?php endif ?>
                               
                                           